package xyz.hubery.enums;

import lombok.Getter;

/**
 * 异步任务处理状态枚举类
 */
@Getter
public enum AsyncTaskStatus {

    PENDING(0,"还未执行"),
    PROCESSING(1,"处理中"),
    SUCCESS(2,"成功"),
    FAILED(3,"失败"),
    MAX_RETRY_EXCEEDED(4,"超过最大重试次数"),
    ;


    private int code;

    private String desc;

    AsyncTaskStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}
